/*
 * sensor: sensor
 * File: $Id: developcanmode.c   2019/12/20 
 *
 *  Created on: 2019年12月20日
 *      Author: hongwei
 */
#include "cmsis_os.h"

#include "ctrTask.h"
#include "mytftpserverif.h"
#include "MBapp.h"
osThreadId commandTaskHandle;
osThreadId ctrTaskHandle;
//Create
void controlconfig(void)
{

//	osDelay(100);
	/* Create the thread(s) */
	/* definition and creation of controlTask */
	osThreadDef(commandTask, sendcommandTask, osPriorityAboveNormal, 0, 256);
	commandTaskHandle = osThreadCreate(osThread(commandTask), NULL);
	/* Create the thread(s) */
	/* definition and creation of controlTask */

	osThreadDef(sensorTask, ctrTask, osPriorityAboveNormal, 0, 128);
	ctrTaskHandle = osThreadCreate(osThread(sensorTask), NULL);

}

void sendcommandTask(void const *argument) //用于发送控制命令
{
	uint8_t cnt = 0;

	for (;;)
	{


		if(0 == (cnt%2)){					
		}		
		else{
		}
		cnt++;			
		osDelay(10);
	}
}


void ctrTask(void const *argument) //用于处理传感器的信息
{
//	uint8_t cnt,index;

	for (;;)
	{	
		sofe_reset();			
		osDelay(10);
	}
}

